<template>
	<div class="xitongpeizhi">
    <div v-if="!shoujiban">
      
      <left></left>
      <div class="right">
        <div style="height: 91px; border-bottom: 1px solid rgb(227, 232, 241); width: 100%; padding: 0 30px;" class="flexbc">
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/xitongpeizhi' }">系统管理</el-breadcrumb-item>
            <el-breadcrumb-item >云账户注册</el-breadcrumb-item>
          </el-breadcrumb>
          <top></top>
        </div>
        <div style="padding: 37px 30px 0 30px; height: calc(100vh - 91px); overflow: auto;">
        
          <div class="flexc" style="font-size: 16px; font-weight: bold; margin-bottom: 20px;">
            <div><img src="../../../static/img/xitong4.png" style="width: 22px; margin-right: 10px;"></div>
            <div>云账户注册</div>
          </div>
          <!-- 注册 -->
          <div v-if="nowtype==1" style="font-size: 14px;color: #005AFF;margin-bottom: 30px;">我们已经成为云账户的技术服务商，您在该页面申请成功后可以直接绑定云账户，无需再做配置。</div>
          <!--  编辑 -->
          <div v-if="nowtype==2&&failres!=''"  class="baibeijing" style="  margin-bottom: 20px;">
            <div style="color:#999898;font-size: 14px;">申请失败，请查看失败原因</div>
            <div style="margin-top: 20px;margin-bottom: 10px;">失败原因：</div>
            <div style="color: #FF0000;font-size: 14px;">{{ failres }}</div>
          </div>
          <div class="baibeijing" style="  margin-bottom: 20px;">
            <div class="flexc t_item_info">
              <div class="yzh_title">企业统一社会信用代码</div><el-input :disabled="!iscanup" v-model="reform.enterprise_num" placeholder="请输入"  style="width: 360px; margin-right: 20px;"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">企业名称</div><el-input :disabled="!iscanup" placeholder="请输入" v-model="reform.enterprise_name" style="width: 360px; margin-right: 20px;"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">企业营业执照影印件</div><chuantu2 v-if="nowtype==1||showold" :widths="'100px'" :heights="'100px'" :widths2="'100px'" :heights2="'100px'" :nocut="true" @getimg="getimg1" :imgs="imgs1" ></chuantu2><div class="t_item_info_tips">上传图片或 PDF</div>
            </div>
            <!-- <div class="flexc t_item_info">
              <div class="yzh_title">服务商平台企业 ID</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.product_id"></el-input>
            </div> -->
            <div class="flexc t_item_info">
              <div class="yzh_title">平台企业名称</div><el-input  :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.product_name" :maxlength="12"></el-input>
              <div class="t_item_info_tips">平台企业别名，最大支持 12 个字符</div>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">联系人姓名</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.admin_user_name" :maxlength="30"></el-input>
              <div class="t_item_info_tips">支持中文、英文，最大支持 30 个字符</div>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">联系人邮箱</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.admin_user_email"></el-input>
              <div class="t_item_info_tips">若已创建云账户综合服务平台账号，则可用于登录云账户综合服务平台，也可接收邀约开户提醒邮件</div>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">联系人手机号</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.admin_user_tel"></el-input>
              <div class="t_item_info_tips">若已创建云账户综合服务平台账号，则可用于登录云账户综合服务平台时，接收验证码。仅支持中国大陆手机号</div>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">签约人类型</div>
              <el-select :disabled="!iscanup" style="width: 360px; margin-right: 20px;" placeholder="请选择" v-model="reform.sign_user_type">
                <el-option label="企业法人" value="1">
                </el-option>
                <!-- <el-option label="企业委托人" value="2">
                </el-option> -->
              </el-select>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">签约人真实姓名</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_user_name"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">签约人身份证号码</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_id_num"></el-input>
              <div class="t_item_info_tips">如果身份证号码包含 X，需大写</div>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">签约人手机号</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_tel"></el-input>
              <div class="t_item_info_tips">用于接收签约短信验证码。仅支持中国大陆手机号</div>
            </div>
            <!-- <div class="flexc t_item_info">
              <div class="yzh_title">验证码</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;"></el-input><el-button type="text" @click="getcode">{{ getcodemsg }}</el-button>
            </div> -->
            <div class="flexc t_item_info">
              <div class="yzh_title">签约人邮箱</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_email"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">签约人身份证正面</div><chuantu2 v-if="nowtype==1||showold" :widths="'220px'" :heights="'140px'" :widths2="'220px'" :heights2="'140px'" :bgimg="1" :nocut="true" @getimg="getimg2" :imgs="imgs2" ></chuantu2>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title"> 签约人身份证反面</div><chuantu2 v-if="nowtype==1||showold" :widths="'220px'" :heights="'140px'" :widths2="'220px'" :heights2="'140px'" :bgimg="2" :nocut="true" @getimg="getimg3" :imgs="imgs3" ></chuantu2>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">纳税人类型</div>
              <el-select :disabled="!iscanup" style="width: 360px; margin-right: 20px;" placeholder="请选择" v-model="reform.taxpayer_type">
                <el-option label="一般纳税人" value="1">
                </el-option>
                <el-option label="小规模纳税人" value="2">
                </el-option>
              </el-select>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">公司注册地址</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_address"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">公司电话</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_tel"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">公司开户行</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_bank"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">公司银行账号</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_bank_no"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">接收报税文件邮箱</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.receive_tax_email"></el-input>
            </div>
            <!-- <div class="flexc t_item_info">
              <div class="yzh_title">平台企业开户结果及进度通知回调地址</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.notify_url"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">唯一流水号</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.ref"></el-input>
            </div>
            <div class="flexc t_item_info">
              <div class="yzh_title">综合服务主体 ID</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.broker_id"></el-input>
            </div> -->
            <div class="flexc t_item_info">
              <div class="yzh_title"></div><el-checkbox :disabled="!iscanup"  style="margin-right: 5px;" v-model="nowchoose" >同意云账户</el-checkbox ><span @click="opennow" class="t_usernow">《数字证书企业客户须知》 </span>
            </div>
            <div v-if="nowtype==1||(nowtype==2&&iscanup)" style="padding-bottom: 30px;"><el-button type="primary" style="margin-top: 40px; width: 140px;" round @click="baocunpeizhi">同意申请</el-button></div>
        <!-- <footers></footers> -->
      </div>

          
        </div>
      </div>
    </div>
    <div v-if="shoujiban" style=" color: rgb(2, 12, 29); font-size: 0.24rem; background: #f6f8fb; padding-top: 1rem;">
      <topandleft></topandleft>
      <div style="background: #fff; padding: 0.3rem;">
        <div class="flexc" style="margin-bottom: 0.3rem;">
          <div style="width: 2px; height: 0.2rem; background: rgb(2, 12, 29); margin-right: 10px; overflow: hidden;"></div>
          <div style="font-size: 0.36rem; font-weight: bold;">云账户注册</div>
        </div>
        <div class="flexc" style="margin-bottom: 0.3rem;">
          <div style="color: rgb(175, 179, 188);">系统管理</div>
          <div style="margin: 0 0.2rem;color: rgb(175, 179, 188);">·</div>
          <div>云账户注册</div>
        </div>
      </div>
      <div style="padding: 0.3rem;">
        <!-- <div>1111</div> -->
        <div class="flexc" style="font-size: 16px; font-weight: bold; margin-bottom: 20px;">
          <div><img src="../../../static/img/xitong4.png" style="width: 22px; margin-right: 10px;"></div>
          <div>云账户注册</div>
        </div>
        <!-- 注册 -->
        <div v-if="nowtype==1" style="font-size: 14px;color: #005AFF;margin-bottom: 30px;">我们已经成为云账户的技术服务商，您在该页面申请成功后可以直接绑定云账户，无需再做配置。</div>
        <!--  编辑 -->
        <div v-if="nowtype==2&&failres!=''"  class="baibeijing" style="  margin-bottom: 20px;">
          <div style="color:#999898;font-size: 14px;">申请失败，请查看失败原因</div>
          <div style="margin-top: 20px;margin-bottom: 10px;">失败原因：</div>
          <div style="color: #FF0000;font-size: 14px;">{{ failres }}</div>
        </div>
        <div class="baibeijing" style="  margin-bottom: 20px;">
          <div class="flexc t_item_info">
            <div class="yzh_title">企业统一社会信用代码</div><el-input :disabled="!iscanup" v-model="reform.enterprise_num" placeholder="请输入"  style="width: 360px; margin-right: 20px;"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">企业名称</div><el-input :disabled="!iscanup" placeholder="请输入" v-model="reform.enterprise_name" style="width: 360px; margin-right: 20px;"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">企业营业执照影印件</div><chuantu2 v-if="nowtype==1||showold" :widths="'100px'" :heights="'100px'" :widths2="'100px'" :heights2="'100px'" :nocut="true" @getimg="getimg1" :imgs="imgs1" ></chuantu2><div class="t_item_info_tips">上传图片或 PDF</div>
          </div>
          <!-- <div class="flexc t_item_info">
            <div class="yzh_title">服务商平台企业 ID</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.product_id"></el-input>
          </div> -->
          <div class="flexc t_item_info">
            <div class="yzh_title">平台企业名称</div><el-input  :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.product_name" :maxlength="12"></el-input>
            <div class="t_item_info_tips">平台企业别名，最大支持 12 个字符</div>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">联系人姓名</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.admin_user_name" :maxlength="30"></el-input>
            <div class="t_item_info_tips">支持中文、英文，最大支持 30 个字符</div>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">联系人邮箱</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.admin_user_email"></el-input>
            <div class="t_item_info_tips">若已创建云账户综合服务平台账号，则可用于登录云账户综合服务平台，也可接收邀约开户提醒邮件</div>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">联系人手机号</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.admin_user_tel"></el-input>
            <div class="t_item_info_tips">若已创建云账户综合服务平台账号，则可用于登录云账户综合服务平台时，接收验证码。仅支持中国大陆手机号</div>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">签约人类型</div>
            <el-select :disabled="!iscanup" style="width: 360px; margin-right: 20px;" placeholder="请选择" v-model="reform.sign_user_type">
              <el-option label="企业法人" value="1">
              </el-option>
              <!-- <el-option label="企业委托人" value="2">
              </el-option> -->
            </el-select>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">签约人真实姓名</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_user_name"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">签约人身份证号码</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_id_num"></el-input>
            <div class="t_item_info_tips">如果身份证号码包含 X，需大写</div>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">签约人手机号</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_tel"></el-input>
            <div class="t_item_info_tips">用于接收签约短信验证码。仅支持中国大陆手机号</div>
          </div>
          <!-- <div class="flexc t_item_info">
            <div class="yzh_title">验证码</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;"></el-input><el-button type="text" @click="getcode">{{ getcodemsg }}</el-button>
          </div> -->
          <div class="flexc t_item_info">
            <div class="yzh_title">签约人邮箱</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.sign_email"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">签约人身份证正面</div><chuantu2 v-if="nowtype==1||showold" :widths="'220px'" :heights="'140px'" :widths2="'220px'" :heights2="'140px'" :bgimg="1" :nocut="true" @getimg="getimg2" :imgs="imgs2" ></chuantu2>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title"> 签约人身份证反面</div><chuantu2 v-if="nowtype==1||showold" :widths="'220px'" :heights="'140px'" :widths2="'220px'" :heights2="'140px'" :bgimg="2" :nocut="true" @getimg="getimg3" :imgs="imgs3" ></chuantu2>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">纳税人类型</div>
            <el-select :disabled="!iscanup" style="width: 360px; margin-right: 20px;" placeholder="请选择" v-model="reform.taxpayer_type">
              <el-option label="一般纳税人" value="1">
              </el-option>
              <el-option label="小规模纳税人" value="2">
              </el-option>
            </el-select>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">公司注册地址</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_address"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">公司电话</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_tel"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">公司开户行</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_bank"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">公司银行账号</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.enterprise_bank_no"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">接收报税文件邮箱</div><el-input :disabled="!iscanup" placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.receive_tax_email"></el-input>
          </div>
          <!-- <div class="flexc t_item_info">
            <div class="yzh_title">平台企业开户结果及进度通知回调地址</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.notify_url"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">唯一流水号</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.ref"></el-input>
          </div>
          <div class="flexc t_item_info">
            <div class="yzh_title">综合服务主体 ID</div><el-input placeholder="请输入"  style="width: 360px; margin-right: 20px;" v-model="reform.broker_id"></el-input>
          </div> -->
          <div class="flexc t_item_info">
            <div class="yzh_title"></div><el-checkbox :disabled="!iscanup"  style="margin-right: 5px;" v-model="nowchoose" >同意云账户</el-checkbox ><span @click="opennow" class="t_usernow">《数字证书企业客户须知》 </span>
          </div>
          <div v-if="nowtype==1||(nowtype==2&&iscanup)" style="padding-bottom: 30px;"><el-button type="primary" style="margin-top: 40px; width: 140px;" round @click="baocunpeizhi">同意申请</el-button></div>
       </div>
      </div>
    </div>
    <!-- 用户须知 -->
    <el-dialog
      title="用户须知"
      :visible.sync="isshownow"
      width="60%">
      <div style="text-align: center;font-size: 24px;color: #404247;">数字证书企业客户须知 </div><br/><br/>
      <p>尊敬的企业客户：  </p><br/>
      <p>根据《中华人民共和国电子签名法》的规定，可靠的电子签名与手写签名或者盖章具有同等的法律效力。电子签名数字证书（以下简称“数字证书”）是认证服务机构（Certificate Authority，下称“认证机构”）签发的用于识别签约主体身份的数字证书。</p><br/>
      <p>一、为保证签约的效力、维护双方的合法权益，云账户（天津）共享经济信息咨询有限公司（简称“云账户”）拟通过电子签名的方式与您签署合作协议及其他法律文件。就数字证书的生成及调用事宜，您向云账户作出如下授权：</p><br/>
      <p>1、您同意并授权云账户使用您向云账户披露、确认的企业名称、统一社会信用代码、联系人姓名、联系人身份证号及联系人手机号码，并将前述信息共享给认证机构用于生成您的数字证书，认证机构将对您的信息进行核实、验证。</p><br/>
      <p>2、您同意并授权在您与云账户签署《灵活就业服务合作协议》及其他法律文件时，云账户调用您的数字证书用于签名。</p><br/>
      <p>3、您认可通过调用您的数字证书产生的电子合同及其他法律文件具有法律效力，且承诺履行相关的义务与责任。</p><br/>
      <p>二、您保证所提供信息的真实性、准确性和完整性，如因您提供的信息错误导致数字证书无法生成或《灵活就业服务合作协议》及其他法律文件无法有效签署的，您应补充提供或更正相关信息并承担相应责任。</p><br/>
      <p>三、签署电子合同或其他法律文件前，认证机构将向您预留的联系人手机号码发送签署验证码，当您收到签署验证码时，应确保签署请求由您发起，且对验证码承担保密义务。如您使用的数字证书私钥泄漏、丢失，或者您不希望继续使用数字证书，或者您的主体不存在，您应当立即向云账户申请废止该数字证书。因您原因致使证书私钥泄露、损毁或者丢失的，损失由您承担。</p><br/>
      <p>四、您明确了解数字证书是您的网上合法身份标识，通过数字证书签署的电子合同及法律文件与您签字的合同及文件具有同等效力。</p><br/>
     <p>五、本须知自您或您的授权代表点击、勾选或以其他方式确认本须知时生效，有效期至您与云账户签署的合作协议及其他法律文件到期之日（以最晚到期日为准）。</p>


      <div style="text-align: center;margin-top: 20px;">
        <el-button round  @click="isshownow = false">关 闭</el-button>
        <el-button round type="primary" @click="agreebtn">我已了解并同意</el-button>
      </div>
    </el-dialog>

	</div>
</template>

<script>
  import left from '../left.vue'
  import top from '../top.vue'
  import topandleft from '../topandleft.vue'
  import footers from '../footer.vue'
  import chuantu2 from '@/components/chuantu2.vue'
	export default {
		name: 'yzhregister',
    components:{
      left,topandleft,chuantu2,top,footers
    },
		data() {
			return {
        getcodemsg:'获取验证码',
        isshownow:false,
        nowchoose:false,
        nowtype:'',
        reform:{
          site_id:'',
          enterprise_num:'',
          enterprise_name:'',
          enterprise_pic:'',
          // product_id:'',
          product_name:'',
          
          admin_user_name:'',
          admin_user_email:'',
          admin_user_tel:'',
          sign_type:'1',
          sign_user_type:'',
          sign_user_name:'',
          sign_id_num:'',
          sign_tel:'',
          sign_email:'',
          sign_user_pic_1:'',
          sign_user_pic_2:'',
          taxpayer_type:'',
          enterprise_address:'',
          enterprise_tel:'',
          enterprise_bank:'',
          enterprise_bank_no:'',
          receive_tax_email:'',
          agree_agreement:'1',
          // notify_url:'',
          // ref:'',
          // broker_id:''
        },
        user:'',
        imgs1:'',
        imgs2:'',
        imgs3:'',
        showold:false,
        iscanup:true,
        failres:'',
        shoujiban:false,
        widthss:false
			}
		},
		created() {
      this.nowtype = this.$route.query.type
      if(localStorage.getItem('user')){
        this.user = JSON.parse(localStorage.getItem('user'))
        this.reform.site_id = this.user.site_id
      }

      
      
		},
    mounted() {
      
      if(this.nowtype==2){
        //编辑=走获取详情
        this.getinfo()
        this.nowchoose = true
      }
      if(window.screen.width == 1920){
        this.widthss = true
      }

      document.addEventListener('paste', this.getClipboardFiles)

      if(window.screen.width < 1080){
        this.shoujiban = true
        var h = document.documentElement.clientWidth / 7.5 + 'px';
        document.documentElement.style.fontSize = h;

      }else{

      }

		},
		methods: {
        //获取验证码
        getcode(){
          if(this.getcodemsg == '获取验证码'){
            this.getcodemsg = 60
            var time = setInterval(()=>{
              if(this.getcodemsg>0){
                this.getcodemsg--
              }else{
                this.getcodemsg = '获取验证码'
                clearInterval(time)
              }
            },1000)
          }
        },
        //接受图片
        getimg1(val){
          this.reform.enterprise_pic = val
        },
        getimg2(val){
          this.reform.sign_user_pic_1 = val
        },
        getimg3(val){
          this.reform.sign_user_pic_2 = val
        },
        //打开用户须知
        opennow(){
          this.isshownow = true
        },
        //保存
        baocunpeizhi(){
          console.log('提交数据')
          console.log(this.reform)
          if(!this.nowchoose){
            this.$message.error('请先勾选同意云账户用户须知');
            return
          }
          if(this.roleform()){
            this.$message.error('信息未填写完整');
            return
          }
          axios.post('/own/yunzhifu/applyCount',this.reform).then((response)=>{
            if (response.data.msg.code == 0) {
              console.log('注册回调')
              this.$message({
                message: '操作成功',
                type: 'success'
              });
              this.$router.push({
								path: '/xitongpeizhi'
							});
            } else {
              this.$message.error(response.data.msg.info);
            }
          })
        } ,
        //同意
        agreebtn(){
          this.isshownow = false
          this.nowchoose = true
        },
        //验证数据是否填写完整
        roleform(){
          if(
            this.reform.enterprise_num==''||
            this.reform.enterprise_name==''||
            this.reform.enterprise_pic==''||
            this.reform.product_name==''||
            this.reform.admin_user_name==''||
            this.reform.admin_user_email==''||
            this.reform.sign_user_type==''||
            this.reform.sign_user_name==''||
            this.reform.sign_id_num==''||
            this.reform.sign_tel==''||
            this.reform.sign_email==''||
            this.reform.sign_user_pic_1==''||
            this.reform.sign_user_pic_2==''||
            this.reform.taxpayer_type==''||
            this.reform.enterprise_address==''||
            this.reform.enterprise_tel==''||
            this.reform.enterprise_bank==''||
            this.reform.enterprise_bank_no==''||
            this.reform.receive_tax_email==''
            ){
              return true
          }else{
            return false
          }
        },
        //获取详情
        getinfo(){
          axios.get('/own/yunzhifu/getSubmitInfo?site_id='+this.user.site_id).then((response)=>{
            if (response.data.msg.code == 0) {
              console.log('获取详情')
              console.log(response)
              this.reform.enterprise_num = response.data.data.enterprise_num
              this.reform.enterprise_name = response.data.data.enterprise_name
              this.reform.enterprise_pic = response.data.data.enterprise_pic
              this.reform.product_name = response.data.data.product_name
              this.reform.admin_user_name = response.data.data.admin_user_name
              this.reform.admin_user_email = response.data.data.admin_user_email
              this.reform.admin_user_tel = response.data.data.admin_user_tel
              this.reform.sign_user_type = response.data.data.sign_user_type
              this.reform.sign_user_name = response.data.data.sign_user_name
              this.reform.sign_id_num = response.data.data.sign_id_num
              this.reform.sign_tel = response.data.data.sign_tel
              this.reform.sign_email = response.data.data.sign_email
              this.reform.sign_user_pic_1 = response.data.data.sign_user_pic_1
              this.reform.sign_user_pic_2 = response.data.data.sign_user_pic_2
              this.reform.taxpayer_type = response.data.data.taxpayer_type
              this.reform.enterprise_address = response.data.data.enterprise_address
              this.reform.enterprise_tel = response.data.data.enterprise_tel
              this.reform.enterprise_bank = response.data.data.enterprise_bank
              this.reform.enterprise_bank_no = response.data.data.enterprise_bank_no
              this.reform.receive_tax_email = response.data.data.receive_tax_email
              this.imgs1 = response.data.data.enterprise_pic
              this.imgs2 = response.data.data.sign_user_pic_1
              this.imgs3 = response.data.data.sign_user_pic_2
              this.showold = true
              this.failres = response.data.data.status_comment
              if(response.data.data.status.toString()=='0'){
                this.iscanup = true
              }else{
                this.iscanup = false
              }
              
            } else {
              this.$message.error(response.data.msg.info);
            }
          })
        }
		}
	}
</script>

<style scoped>
.t_wen{
  width: 18px;
  height: 18px;
  background-color:#9a9a9a;
  color: white;
  text-align: center;
  line-height: 18px;
  margin-left: 12px;
  border-radius: 50%;
  cursor: pointer;
}
.t_tips{
  font-size: 12px;
  color: #787778;
  margin-top: 10px;
}
/deep/.t_bf_input  .el-input__inner{
border-radius:20px 0 0 20px !important;
}
/deep/.t_bf_input  .el-input-group__append{
border-radius:0px 20px 20px 0px !important;
}
.t_yzh{
  color: #005AFF;
  background-color: #E4EDFF;
  padding: 5px 10px;
  border-radius: 25px;
  font-size: 12px;
  cursor: pointer;
}
.yzh_title{
  width: 180px;
}
.t_item_info{
  margin-bottom: 20px;
}
.t_item_info_tips{
  margin-left: 40px;
  color: #5D5D5D;
  font-size: 14px;
}
.t_usernow{
  cursor: pointer;
  color: #005AFF;
}
</style>
<style scoped lang="less">
  .xitongpeizhi{
    .xiugai{background: rgb(228, 237, 255); border-radius: 14px; height: 28px; width: 52px; color: rgb(0, 90, 255); font-size: 12px;}
    /deep/ .t .el-input__inner{ border: 0 !important; padding: 0 !important; height: 50px !important; line-height: 50px !important;}
    /deep/ .tt .el-input__inner{ border: 0 !important;  height: 50px !important; line-height: 50px !important;}
    /deep/ .el-radio{ display: block; margin-bottom: 20px;}
    .t2{
      /deep/ .el-input__inner{ border-radius: 0 !important; border: 0 !important; height: 39px !important; line-height: 39px !important;;}
    }
  }
</style>
